package app.server.project.main.service.dto.lv;

import app.server.project.main.service.db.entity.user.UserInfoEntity;
import cn.hutool.core.bean.BeanUtil;
import lombok.Data;

@Data
public class LvDto {

    private long userId;
    /**
     * 等级
     */
    private int lv;

    /**
     * 点击次数
     */
    private long clickNum;

    /**
     * 等级开始次数
     */
    private long startClickNum;

    /**
     * 等级结束次数
     */
    private long endClickNum;

    public static LvDto of(UserInfoEntity userInfoEntity) {
        LvDto dto = new LvDto();
        BeanUtil.copyProperties(userInfoEntity, dto, true);
        return dto;
    }
}
